application: don't unconditionally unref the GMenuModel in getters
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 21 Dec 2011 11:20:15 +0000 (12:20 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 21 Dec 2011 11:20:15 +0000 (12:20 +0100)
commit157d9271fa64074a3e1d92994adbcc073d4bc6ce
treeb727de0b527b22be37d19d401aa98d82663ad53e
parent72c04c064a1b35673ef6e65bd1c0d3389c029bd4
application: don't unconditionally unref the GMenuModel in getters

Both the app-menu and menubar models can be NULL, so we shouldn't
blindly unref them, since g_object_unref() doesn't cope with NULL
pointers.
gtk/gtkapplication.c